﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ZSoftInstagram.UI.ViewModels
{
    public class RePinModel
    {
        [Required]
        public int PinId { get; set; }
        [Required]
        public int[] BoardIds { get; set; }
    }

    public class PinBoardDashBoardModel
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public DateTime Date { get; set; }
        public ICollection<CategoryViewModel> Categories { get; set; }
        public string Description { get; set; }
    }

    public class PinBoardCreateModel
    {
        [Required]
        public string Title { get; set; }
        [Required]
        public string Description { get; set; }
        public int UserId { get; set; }
        [Required]
        public int CategoryId { get; set; }
        public DateTime Date
        {
            get
            {
                return DateTime.Now;
            }
        }
    }

    public class PinBoardHomeModel
    {
        public IEnumerable<int> CategoryIds { get; set; }
        public IEnumerable<PinHomeViewModel> Pins { get; set; }
    }

    public class PinBoardCreateViewModel
    {
        [Required]
        public string Title { get; set; }
        [Required]
        public string Description { get; set; }
        public int UserId { get; set; }
        public ICollection<CategoryViewModel> Categories { get; set; }
        public DateTime Date
        {
            get
            {
                return DateTime.Now;
            }
        }
    }

    public class PinBoardDeleteModel
    {
        public int Id { get; set; }
    }

    public class PinBoardEditModel
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public ICollection<PinViewModel> Pins { get; set; }
    }
}
